AC_INIT([trith], [0.0.4], [trith@googlegroups.com])
AC_CONFIG_SRCDIR([src/trith.h])
AC_CONFIG_AUX_DIR([etc/aclocal])
AC_CONFIG_MACRO_DIR([etc/aclocal])
AM_INIT_AUTOMAKE([foreign -Wall -Werror dist-bzip2])
AM_SILENT_RULES([yes])
LT_INIT
AC_PROG_CC
AM_PATH_GLIB_2_0([2.24.0], [], [], [gthread-2.0])
AC_CHECK_HEADERS(gmp.h)
AC_CHECK_LIB(gmp, __gmpz_init)
AC_CHECK_HEADERS(mpfr.h)
AC_CHECK_LIB(mpfr, mpfr_init)
AC_CHECK_HEADERS(ffi.h)
AC_CHECK_LIB(ffi, ffi_call)
AC_CHECK_HEADERS(raptor.h)
AC_CHECK_LIB(raptor, raptor_init)
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile doc/man/Makefile])
AC_OUTPUT
